import request from '@/utils/request'

// 查询供应商认证信息列表
export function listSup_info(query) {
  return request({
    url: '/system/sup_info/list',
    method: 'get',
    params: query
  })
}

// 查询供应商认证信息详细
export function getSup_info(id) {
  return request({
    url: '/system/sup_info/' + id,
    method: 'get'
  })
}


// 新增供应商认证信息
export function addSup_info(data) {
  return request({
    url: '/system/sup_info',
    method: 'post',
    data: data
  })
}

// 供应商信息认证
export function authSup_info(data) {
  return request({
    url: '/system/sup_info/auth',
    method: 'post',
    data: data
  })
}

// 修改供应商认证信息
export function updateSup_info(data) {
  return request({
    url: '/system/sup_info',
    method: 'put',
    data: data
  })
}

// 删除供应商认证信息
export function delSup_info(id) {
  return request({
    url: '/system/sup_info/' + id,
    method: 'delete'
  })
}
